home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / file / conflict.0 / conflict / conflict-6.0 / configure.in < prev    next >
Encoding:
Text File  |  1995-03-18  |  1.4 KB  |  64 lines

  1. dnl Process this file with 'autoconf' to produce a 'configure' script
  2. dnl $Id: configure.in,v 6.0 1995/03/18 14:22:35 dickey Rel $
  3. AC_REVISION($Revision: 6.0 $)
  4. AC_INIT(conflict.c)
  5.  
  6. AC_ARG_WITH(debugging,
  7. [  --with-debugging        turn on gcc debug-flag ],
  8. [CFLAGS="$CFLAGS -g"],
  9. [CFLAGS="$CFLAGS -O"])
  10.  
  11. AC_PROG_CC
  12. AC_PROG_INSTALL
  13. AC_C_CONST
  14. AC_CHECK_PROGS(LINT, tdlint lint alint)
  15.  
  16. AC_SUBST(CFLAGS)
  17. AC_SUBST(LDFLAGS)
  18. AC_SUBST(LIBS)
  19. AC_SUBST(LINT)
  20.  
  21. AC_CONST
  22. AC_HEADER_STDC
  23. AC_CHECK_HEADERS(stdlib.h unistd.h)
  24. AC_CHECK_HEADERS(getopt.h string.h malloc.h sys/param.h)
  25. AC_HEADER_DIRENT
  26.  
  27. AC_TYPE_SIZE_T
  28. AC_CHECK_TYPE(ino_t, unsigned)
  29. AC_CHECK_TYPE(dev_t, unsigned)
  30.  
  31. AC_CHECK_FUNCS(getcwd getopt link symlink realpath strrchr strdup)
  32.  
  33. AC_ARG_WITH(warnings,
  34. [  --with-warnings         turn on gcc warnings, for debugging ],[
  35. if test -n "$GCC"
  36. then
  37. CFLAGS='-O -Wall -Wshadow -Wconversion -Wstrict-prototypes -Wmissing-prototypes'
  38. fi
  39. ])
  40.  
  41. AC_ARG_WITH(dbmalloc,
  42. [  --with-dbmalloc         compile/link with dbmalloc if found ],[
  43. AC_CHECK_HEADER(dbmalloc.h,[
  44. AC_CHECK_LIB(dbmalloc,dbmallopt,[
  45. AC_DEFINE(HAVE_DBMALLOC_H)
  46. LIBS="$LIBS -ldbmalloc"])])
  47. ])
  48.  
  49. ###    output makefile and config.h
  50. changequote({,})dnl
  51. AC_OUTPUT(makefile config_h,
  52. {
  53. echo creating config.h
  54. sed    -e '/^# /d' \
  55.     -e 's/ -D/\
  56. #define /g' \
  57.     -e 's/\(#define [A-Za-z_][A-Za-z0-9_]*\)=/\1    /g' \
  58.     config_h >config.h
  59. }
  60. echo removing config_h
  61. rm config_h
  62. )
  63. changequote([,])dnl
  64.